package com.sjr.easy.chat.service;

import com.sjr.easy.chat.model.FriendRequest;

import java.util.List;

public interface FriendRequestService {

    void addFriendRequest(FriendRequest friendRequest);

    FriendRequest selectById(Long id);


    List<FriendRequest> selectByFromUserIdOrTargetUserId(Long userId);


    List<FriendRequest> selectByTargetUserId(Long userId);


    void batchChangeReadStatus2Read(List<Long> idList);

    void acceptFriendRequest(Long friendRequestId);


    void rejectFriendRequest(Long friendRequestId);
}